/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.ipti.br.tag.bo;

import org.ipti.br.tag.dao.JuridicFacade;
import org.ipti.br.tag.entity.Juridic;
import java.io.Serializable;
import java.util.Calendar;
import java.util.List;
import javax.inject.Inject;
import javax.ejb.Stateless;

/**
 *
 * @author root
 */
@Stateless
public class JuridicBO implements Serializable {

    @Inject
    private JuridicFacade juridicDAO;

    public JuridicFacade getJuridicDAO() {
        return juridicDAO;
    }

    public void create(Juridic juridic) {
        getJuridicDAO().create(juridic);
    }

    public void edit(Juridic juridic) {
        getJuridicDAO().edit(juridic);
    }

    public void remove(Juridic juridic) {
        getJuridicDAO().remove(juridic);
    }

    public Juridic find(Object id) {
        return getJuridicDAO().find(id);
    }

    public List<Juridic> findAll() {
        return getJuridicDAO().findAll();
    }

    public List<Juridic> modifiedJuridicBetweenDate(Calendar initialDate, Calendar finalDate, Long serialNumber) {
        return getJuridicDAO().modifiedJuridicBetweenDate(initialDate, finalDate, serialNumber);
    }

    public List<Juridic> findAllOrder() {
        return getJuridicDAO().findAllOrder();
    }
}
